//
//  ShortcutCell.m
//  ECO
//
//  Created by zl on 2019/9/24.
//  Copyright © 2019 谷银行. All rights reserved.
//

#import "ShortcutCell.h"

@implementation ShortcutCell
- (UIButton *)BackGroudBtn{
    if (!_BackGroudBtn) {
        _BackGroudBtn = [[UIButton alloc]initWithFrame:CGRectMakeCustom(0, 0, 320, 47)];
        [_BackGroudBtn addTarget:self action:@selector(BackBtn) forControlEvents:UIControlEventTouchUpInside];
    }
    return _BackGroudBtn;
}
- (UILabel *)Title{
    if (!_Title) {
        _Title = [[UILabel alloc]initWithFrame:CGRectMakeCustom(15, 13, 100, 21)];
    }
    _Title.text = @"添加快捷回复";
    return _Title;
}
- (UIImageView *)imgV{
    if (!_imgV) {
        _imgV = [[UIImageView alloc]initWithFrame:CGRectMakeCustom(320 - 12-15, 17.5, 12, 12)];
        _imgV.image = [UIImage imageNamed:@"icon-next"];
    }
    return _imgV;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.BackGroudBtn];
        [self.BackGroudBtn addSubview:self.Title];
        [self.BackGroudBtn addSubview:self.imgV];
    }
    return self;
}
- (void)BackBtn{
    if (self.delegate && [self.delegate respondsToSelector:@selector(ShortcutCellClick)]) {
        [self.delegate performSelector:@selector(ShortcutCellClick) withObject:nil];
    }
}
@end
